package com.weishi.project.training.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weishi.project.speedometer.vo.PropellerFrequencyData;
import com.weishi.project.training.domain.ShipSpeedRecord;

import java.util.List;

/**
 * 船速仪历史数据Service接口
 */
public interface IShipSpeedRecordService extends IService<ShipSpeedRecord> {

    /**
     * 查询船速仪历史数据列表
     */
    List<ShipSpeedRecord> selectShipSpeedRecordList(ShipSpeedRecord shipSpeedRecord);

    /**
     * 获取整个流程的数据
     * @param shipSpeedRecord
     * @return
     */
    ShipSpeedRecord selectShipSpeedRecord(ShipSpeedRecord shipSpeedRecord);

    /**
     * 核算比赛成绩
     * @param shipSpeedId
     * @param channelId
     */
    void addShipSpeedRecord(String shipSpeedId, Integer channelId);

    List<PropellerFrequencyData> getPropellerFrequencyData(ShipSpeedRecord shipSpeedRecord);
}